<template>
  <view class="content">
    
    <text style="font-weight: bold;">积分规则:</text>
    <view style="font-size: 26rpx; margin-top: 20rpx;" v-html="rule">
      
    </view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        rule:''
      };
    },
    onLoad() {
      this.getRules()
    },
    methods:{
     async getRules() {
       const { data } = await uni.$http.get('/integral/findIntegralRule') 
       if(data.statusCode !== 200 ) {
         return
       }else {
         this.rule = data.data.integralRules
       }
      }
    }
  }
</script>

<style lang="scss">
.content {
  // width: 100%;
  height: 100%;
  padding: 20rpx;
}
</style>
